/**
 * 
 */
package org.cubikalabs.todolist.service;

import java.util.List;

import org.cubikalabs.todolist.domain.Todo;
import org.springframework.flex.remoting.RemotingDestination;
import org.springframework.flex.remoting.RemotingInclude;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author gflores
 *
 */

@Service("todoService")
@RemotingDestination(channels={"my-amf"})
@Transactional
public interface TodoService {
	
	@RemotingInclude
	List<Todo> getTodoList();
	
	@RemotingInclude
	Todo saveTodo(Todo todo);

	@RemotingInclude
	Todo deleteTodo(Todo todo);
}
